import Vue from 'vue'
import * as mock from './axios/mock'
import * as echarts from 'echarts'
import elementUI from 'element-ui';

import store from './store'
import moment from 'moment'

Vue.prototype.$mock = mock;
Vue.prototype.$echarts = echarts;

//  主要为了element得提示有点不方便，这样子可以直接穿文字就好了得
Vue.prototype.$success = (msg) => {
    elementUI.Message({type: 'success', message: msg, showClose: true});
}
Vue.prototype.$error = (msg) => {
    elementUI.Message({type: 'error', message: msg, showClose: true});
}
Vue.prototype.$warning = (msg) => {
    elementUI.Message({type: 'warning', message: msg, showClose: true});
}
Vue.prototype.$info = (msg) => {
    elementUI.Message({type: 'info', message: msg, showClose: true});
}